import Canvas from '../../store/canvas/canvas'

export const getProductSize = (id: string): { width: number; height: number } => {
  const nodes = Canvas.getNodes('id', id)
  const node = nodes[0]

  return {
    width: node.simData.product?.width || 20,
    height: node.simData.product?.height || 20
  }
}
